
$staffColorList: '05FFFF', '11C4FF', '14FC0F', 'FF950B', '9E9E9E', '4B6DFF', 'EB6100', '67D39B', 'FDF98E', 'D029EB';

@mixin staffAnimation($color) {
  animation: ds-staff-#{$color} linear infinite 2s !important;
}

@each $color in $staffColorList {
  .ds-staff-#{$color} {
    @include staffAnimation($color);
  }

  @keyframes ds-staff-#{$color} {
    0% { box-shadow: 0px 0px 0px 0px; }
    50% { box-shadow: 0px 0px 5px 1px #{'#'}#{$color}; }
    100% { box-shadow: 0px 0px 0px 0px; }
  }
}

@keyframes ds-staff-ui {
  0% { box-shadow: 0px 0px 0px 0px; }
  50% { box-shadow: 0px 0px 5px 1px #33FFCD; }
  100% { box-shadow: 0px 0px 0px 0px; }
}

.map-ui-customer {
  animation: ds-customer-ui linear infinite 2s !important;
}

.map-ui-server {
  &::before {
    content: '';
    position: absolute;
    // left: 50%;
    // top: 50%;
    width: 100%;
    height: 100%;
    // transform-origin: left top;
    transform-origin: center;
    background: transparent;
    border-radius: 50%;
    // transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;

    // border: 2px solid rgba(0, 255, 246, 0.5);
    // animation: ds-server-ui linear 1.5s infinite !important;
    animation: ds-server-scale linear 1.5s infinite !important;
    // animation: ds-server-scale ease 2s infinite !important;
  }
  // &::after {
  //   content: '';
  //   position: absolute;
  //   left: 50%;
  //   top: 50%;
  //   width: 100%;
  //   height: 100%;
  //   transform-origin: left top;
  //   background: transparent;
  //   border-radius: 50%;
  //   animation: ds-server-ui linear infinite 2s !important;
  //   animation-delay: 1.5s;
  // }
}

.map-ui-task {
  animation: ds-task-ui 8s infinite linear;
}

@keyframes ds-task-ui {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(5px);
  }
  50% {
    transform: translateY(-3px);
  }
  75% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0px);
  }
}



@keyframes ds-customer-ui {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;      
  }
  100% {
    opacity: 1;
  }
}

@keyframes ds-server-ui {
  0% {
    opacity: 1;
    width: 100%;
    height: 100%;
  }
  96% {
    width: 160%;
    height: 160%;
    opacity: 0;
  }
  100% {
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}

@keyframes ds-server-scale {
  $color: rgba(0, 255, 246, 0.5);
  $color-hide: rgba(0, 255, 246, 0.1);

  0% {
    box-shadow: 0 0 0 1.5px $color;
    transform: scale(1);
  }
  60% {
    box-shadow: 0 0 0 1px $color;
    transform: scale(1.25);
  }
  90% {
    box-shadow: 0 0 0 0.5px $color-hide;
    transform: scale(1.5);
  }
  92% {
    box-shadow: 0 0 0 0px $color-hide;
    transform: scale(1.5);
  }
  100% {
    box-shadow: 0 0 0 0px $color;
    transform: scale(1);
  }
}

